﻿<UserControl 
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"      
    xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"  
    x:Class="WGM_Client_Silverlight.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    
          
     xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows">
    <UserControl.Resources>
        <Style x:Key="ButtonStyle" TargetType="Button">           
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Border x:Name="ButtonBorder" CornerRadius="7" RenderTransformOrigin="0.5,0.5">
                            <Border.Background>
                                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                    <GradientStop Color="LightBlue" Offset="0"/>
                                    <GradientStop Color="Black" Offset="1"/>
                                </LinearGradientBrush>
                            </Border.Background>
                            <ContentPresenter x:Name="ButtonContentPresenter" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            
        </Style>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="Black"  >
        <Grid.RowDefinitions>
            <RowDefinition Height="20" x:Name="_mainMenuRow"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Grid.Row="0">
            <TextBlock Text="Log Off" Foreground="Black"/>
            <TextBlock Text="Profile" Foreground="Black"/>
        </StackPanel>
        <basics:TabControl Grid.Row="1" TabStripPlacement="Bottom" Background="Transparent" Name="_mainTabControl" BorderBrush="Transparent" BorderThickness="0">
            <basics:TabItem Header="Login Tab">
                <Grid VerticalAlignment="Stretch">
                    <StackPanel VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0,50,0,0" MinWidth="420" >
                        <TextBlock Name="_loginMessageTb" HorizontalAlignment="Center" Margin="5,0,0,5" Text="Welcome to Wayne's Global Messenger Beta2" FontFamily="Verdana"  Foreground="#FF0099FF" FontSize="16" FontWeight="Bold"  VerticalAlignment="Bottom" Grid.ColumnSpan="2"  />
                        <Border CornerRadius="10" BorderThickness="1" Margin="0,5,0,0">
                            <Border.BorderBrush>
                                <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
                                    <GradientStop Color="#FF0099FF" Offset="0"/>
                                    <GradientStop Color="LimeGreen" Offset="1"/>
                                </LinearGradientBrush>
                            </Border.BorderBrush>
                            <Grid x:Name="_allLoginControls" >
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="85*" />
                                    <ColumnDefinition Width="205*" />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="35" />
                                    <RowDefinition Height="35" />
                                    <RowDefinition Height="35" />
                                    <RowDefinition Height="*" />
                                </Grid.RowDefinitions>
                                <TextBox Margin="0,5,5,5"  x:Name="_usernameTb" BorderThickness="0" Grid.Column="1" FontFamily="Verdana" FontSize="14"  />
                                <TextBlock Margin="5,5,0,5" Text="Username " Foreground="White"  x:Name="textBlock1" FontFamily="Verdana" FontSize="14" HorizontalAlignment="Left"  />
                                <PasswordBox Margin="0,5,5,5" Grid.Row="1"  x:Name="_passwordTB" BorderThickness="0" Grid.Column="1" FontFamily="Verdana" FontSize="14" />
                                <TextBlock Margin="5,5,0,5" Grid.Row="1" Text="Password " Foreground="White"  x:Name="textBlock2" FontFamily="Verdana" FontSize="14"  HorizontalAlignment="Left"  />
                                <StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Grid.Row="2" Grid.Column="1" Margin="73,0,0,0">
                                    <Button Height="20" Width="50" x:Name="_loginBtn" BorderBrush="#00C4B0B0" BorderThickness="1"   Content="Login" Foreground="#FFFFFFFF"  HorizontalAlignment="Left" Style="{StaticResource ButtonStyle}" Click="_loginBtn_Click"  />
                                    <Button Height="20" Width="50" Margin="3,0,5,0" BorderBrush="#00C4B0B0"  HorizontalAlignment="Right"  x:Name="_cancelBtn"  Content="Cancel"  Foreground="#FFFFFFFF" Style="{StaticResource ButtonStyle}" />
                                </StackPanel>
                                <TextBlock Name="_createAccountBtn" Grid.Row="3" Grid.ColumnSpan="2"  Margin="5,0,0,5" Text="Create Account" FontFamily="Verdana"  Foreground="White"  Cursor="Hand" Height="21" VerticalAlignment="Bottom" HorizontalAlignment="Left"  />
                            </Grid>
                        </Border>
                    </StackPanel>                    
                </Grid>
            </basics:TabItem>
        </basics:TabControl>
    </Grid>

</UserControl>
